﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="MvcHelpers.DynamicViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>Index</h2>
<form action="<%: Url.Action("SendImg") %>" enctype="multipart/form-data" method="post">
<label for="img">Seleccionar imagen:</label>
    <input type="file" name="img" /> <br />
    <input type="submit" />
</form>
<%--<% if (!string.IsNullOrEmpty(ViewBag.ImageUploaded))
{%>
   <img src= "<%: Url.Action("Preview",new {file=ViewBag.ImageUploaded}) %>" />
    
<% }%>--%>
</asp:Content>
